import java.io.*;

public class Main {
	public static boolean determineTriangle(String cpInput) {
		String[] spInput = cpInput.split(" ");
		int a = Integer.parseInt(spInput[0]);
		int b = Integer.parseInt(spInput[1]);
		int c = Integer.parseInt(spInput[2]);
		
		if( (a > Math.abs(b - c	) && a < (b + c)) &&
				(b > Math.abs(a - c	) && b < (a + c)) &&
				(c > Math.abs(a - b	) && c < (a + b)) )
			return true;
		return false;
	}
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String input;
		int score = 0;
		
		while((input = br.readLine()) != null) {
			if(determineTriangle(input))
				score++;
		}
		
		System.out.println(score);
	}
}